package com.neo.impatient.C02_flowControl.C02_12_illegalException



object IllegalTest {


  def TestIll(s: String): Unit ={

    throw new IllegalArgumentException("not a String")
  }

  def ifelseTest(x: Int): Unit ={

    if(x > 0){
      println(x)
    }else throw  new IllegalArgumentException("x < 0")

  }

  def processExectioTest(x: Int): Unit ={


  }

  def main(args: Array[String]): Unit = {

    println("Hello")

    //TestIll("aa")

    println("world !")

  }


}
